<template>
	<view  style="text-align: left;">
		
		<view>
			<span>试题：</span><span style=" word-break: break-word;">{{dataObj.ti.questionsname}}</span>
		</view>
		<view>
			<span>回答：</span><span style=" word-break: break-word;">{{dataObj.daipi.myanswer}}</span>
		</view>
		<view>
			<span>采分点：</span><span style=" word-break: break-word;">{{dataObj.ti.miningpoint}}</span>
		</view>
		<view>
			<span>评语：</span>
			<textarea style="height: 300upx;border:1px solid #bbb;width: 100%;"  :value="pingyuValue" @input="pingyuInput" :disabled="dataObj.daipiDisabled" />
		</view>
		<view>
			<span>分数：</span>
			<input style="border:1px solid #bbb;width: 100%;" :value="fenshuValue" @input="fenshuInput" :disabled="dataObj.daipiDisabled"/>
		</view>
		<view>
			<button type="primary" class="tijiao" @click="tijiao" >提交</button>
		</view>
	</view>

	
</template>


<script>
	export default{
		name:'zhiyi-pending-approval',
		data(){
			return {}
		},
		props:{
			dataObj:{
				type:Object,
				default:()=>{}
			},
			pingyuValue:{
				type:String,
				default:""
			},
			fenshuValue:{
				type:String,
				default:""
			}
		},
		methods:{
			pingyuInput(e){
				let {value} = e.detail
				this.$emit('pingyuHandler',value)
			},
			fenshuInput(e){
				let {value} = e.detail
				this.$emit('fenshuHandler',value)
			},
			tijiao(){
				this.$emit('daipitijiaoHandler')
			}
		}
	}
</script>

<style>
	.tijiao{
		margin-top: 20upx;
	}
</style>
